package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.News;
import cn.wolfcode.trip.base.domain.NewsContent;
import cn.wolfcode.trip.base.domain.NewsType;
import cn.wolfcode.trip.base.query.NewsQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface INewsService {
    PageInfo queryForList(QueryObject qo);

    void changeState(News news);

    void delete(Long id);

    List<NewsType> typeList();

    NewsContent getContentById(Long id);

    void save(News news);

    void update(News news);

    PageInfo queryForHot(NewsQueryObject qo);

    News getById(Long id);
}
